import { Injectable } from '@nestjs/common';
import { BlogEntity } from '../../entity/blog.entity';
import { Repository } from 'typeorm'
import {InjectRepository} from '@nestjs/typeorm'

@Injectable()
export class BlogService {
    constructor(
        @InjectRepository(BlogEntity)
        private readonly blogRepository: Repository<BlogEntity>
    ){}
    
    //新增/修改
    async editBlog(params: any): Promise<any> {

    }   

    //获取列表
    async getBlogList(params: any): Promise<any> {

    }   
}